package iscript.coreFramework.util 
{

	public class NumberUtil 
	{
			 /**
			 * 在数字中添加千位分隔符
			 * 
			 */                     
			/*static public function addNumberSeparator(value:int):String
			{
					var result:String = "";
					while (value >= 1000)
					{
							var v:int = value % 1000;
							result =  "," + fillZeros(v.toString(),3) + result;
							value = value / 1000;
					}
					return result = String(value) + result;
			}*/
			
			/**
			 * 将数字用0补足长度
			 * 
			 */             
			/*static private function fillZeros(str:String, len:int, flag:String="0"):String
			{
					while (str.length < len) 
					{
							str = flag + str;
					}
					return str;
			}*/
			
			
			static public function min(num1:Number, num2:Number):Number  {
				    if (num1 < num2) { return num1 };
					return  num2;
				}
			static public function max(num1:Number, num2:Number):Number  {
				    if (num1 > num2) { return num1 };
					return  num2;
				}
	}

}